work of breath measurement and calculation